export class Chart {

    private _name: string;

    private _versions: Array<ChartVersion>;
    constructor(name: string, versions: Array<ChartVersion>){
        this._name = name;
        this._versions = versions;
    }

    get name(){
        return this._name;
    }

    get versions(){
        return this._versions;
    }

    set name(value: string){
        this._name = value;
    }

    set versions(value: Array<ChartVersion>){
        this._versions = value;
    }
}

export class ChartVersion {

   private _apiVersion: string;
   private _appVersion: string;
   private _created: string;
   private _description: string;
   private _digest: string;
   private _name: string;
   private _type: string;
   private _urls: Array<string>;
   private _version: string;

   constructor(apiVersion: string, appVersion: string, created: string, description: string, digest: string, name: string, type: string, urls: Array<string>, version: string){
       this._apiVersion = apiVersion;
       this._appVersion = appVersion;
       this._created = created;
       this._description = description;
       this._digest = digest;
       this._name = name;
       this._type = type;
       this._urls = urls;
       this._version = version;
   }
   get apiVersion(){
       return this._apiVersion;
   }
   get appVersion(){
       return this._appVersion;
   }
   get created(){
       return this._created;
   }
   get description(){
       return this._description;
   }
   get digest(){
       return this._digest;
   }
   get name(){
       return this._name;
   }
   get type(){
       return this._type;
   }
   get urls(){
       return this._urls;
   }
   get version(){
       return this._version;
   }
   set apiVersion(value: string){
       this._apiVersion = value;
   }
   set appVersion(value: string){
       this._appVersion = value;
   }
   set created(value: string){
       this._created = value;
   }
   set description(value: string){
       this._description = value;
   }
   set digest(value: string){
       this._digest = value;
   }
   set name(value: string){
       this._name = value;
   }
   set type(value: string){
       this._type = value;
   }
   set urls(value: Array<string>){
       this._urls = value;
   }
   set version(value: string){
       this._version = value;
   }
}
